const { default: axios } = require("axios");

// import axios from "axios"
document.querySelector('.btn').addEventListener('click', () => {
  alert('登录成功~~')
  console.log('++++++++');
  
});
document.querySelector('.btn').addEventListener('click',function(){
  axios({
    url:'https://hmajax.itheima.net/api/province'
  }).then(res=>{
    console.log(res);
    
  })
})
axios({
  url:'https://www.baidu.com',
}).then(res=>{
  console.log(res);
  
})